package com.hdax.dm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//开启服务提供者或消费者，客户端的支持，用来注册服务或连接到注册中心
@EnableDiscoveryClient
//开启远程调用客户端   消费者需要加
@EnableFeignClients
//数据访问层的组件扫描
@MapperScan(basePackages = "com.hdax.dm.mappers")
public class MainApplication {

    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class,args);
    }
}
